package com.jic.manager.common.exception;


import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 系统业务异常
 *
 * @author guohuayong
 * @date 2020/2/24 13:38
 **/
@Data
@NoArgsConstructor
public class ManagerException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	Object data;
	private String code;
	private String message;

	public ManagerException(String code, String message) {
		super(new StringBuilder().append(code).append(":").append(message).toString());
		this.code = code;
		this.message = message;
	}

}
